<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3"><span class="text-danger">*</span> {:__('Banner图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}" placeholder="{:__('请选择banner图片')}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('上传')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
            <div class="help-block">{:__('建议尺寸：750x300像素')}</div>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('跳转商品ID')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-link_product_id" class="form-control" name="row[link_product_id]" type="text" value="{$row.link_product_id|htmlentities}" placeholder="{:__('请输入商品ID')}">
            <div class="help-block">{:__('填写商品ID，点击banner时跳转到对应商品详情页')}</div>
        </div>
    </div>
    
    

    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}" placeholder="{:__('数值越大排序越靠前')}">
            <div class="help-block">{:__('用于控制banner显示顺序，数值越大越靠前')}</div>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]-1"><input id="row[status]-1" name="row[status]" type="radio" value="1" {in name="$row.status" value="1"}checked{/in}> {:__('启用')}</label>
                <label for="row[status]-0"><input id="row[status]-0" name="row[status]" type="radio" value="0" {in name="$row.status" value="0"}checked{/in}> {:__('禁用')}</label>
            </div>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-default">{:__('取消')}</button>
            <button type="submit" class="btn btn-success">{:__('确定')}</button>
        </div>
    </div>
</form>